package com.example.composedemo

import android.app.Application
import com.example.composedemo.api.HttpBaseInfo
import com.example.lib_network.base.BaseHttpApiService
import com.hjq.toast.Toaster

/**
 * @author shuguo
 * @date :2024/5/3 17:27
 * @description:
 */
class App : Application(){

    companion object {
        lateinit var application: App
    }

    override fun onCreate() {
        super.onCreate()
        application = this

        initData()
    }

    private fun initData() {
        Toaster.init(this)


        //初始化的时候要传入的参数
        BaseHttpApiService.init(HttpBaseInfo(this, true))
    }
}